package com.whitecat.voting.dao;

import com.whitecat.voting.common.CrudMapper;
import com.whitecat.voting.entity.VotingRecord;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface VotingRecordMapper extends CrudMapper<VotingRecord> {
    int countVoteTimesToday(String votersId);

    int countVotesByOpenId(String candidateId);
}
